package com.dkm.orproject.dkmoa.dao;

import com.dkm.orproject.dkmoa.domain.OaRegularFlow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OaRegularFlowMapper {

    int deleteByPrimaryKey(Long pkRegularId);

    int insert(OaRegularFlow record);

    int insertSelective(OaRegularFlow record);

    OaRegularFlow selectByPrimaryKey(Long pkRegularId);

    int updateByPrimaryKeySelective(OaRegularFlow record);

    int updateByPrimaryKey(OaRegularFlow record);

    List<OaRegularFlow> findAll(@Param("regularName") String regularName, @Param("startDate") String startTime,@Param("endDate") String endTime);

    Long rowCount(@Param("regularName") String regularName, @Param("startDate") String startTime,@Param("endDate") String endTime);

    List<OaRegularFlow> selectAll(@Param("list") List<Long> list);

    int deleteAll(@Param("list") List<Long> list);

    OaRegularFlow isExist(Long pkPersonnelId);
}